<!DOCTYPE html>
<html>
<#include "../head.html">
<link rel="stylesheet" type="text/css" href="${webroot}/plugins/fancybox/jquery.fancybox-1.3.4.css" />
<body class="full">
<div class="mc">
    <div class="mc-l">
        <!--左侧导航---{-->
        <div id="navPanelContainer">
            <div class="system-logo cd"></div>
            <!--管理员信息---{-->
            <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "leftForSaBorrow.html">
                </div>
        </div>
        <!--左侧导航---}-->
    </div>
    <div class="mc-m">
        <div class="navToggle"></div>
    </div>
    <div class="mc-r">
        <!--顶部导航---{-->
        <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="查看项目详情">
                <#include "banner.html">
                    <!--面包屑导航---}-->

                    <!--工具栏--{-->
                    <div id="toolbar" class="clearfix">
                        <div class="toolbor-module">
                            <input type="button" class="input-button return" value="返回" onclick="history.go(-1)">
                        </div>
                    </div>
                    <!--工具栏--}-->

                    <div id="main" class="clearfix">
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>项目详情</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li>
                                        <div class="title">项目名称：</div>
                                        <div class="v">${b.name!''}</div>
                                    </li>
                                    <li>
                                        <div class="title">利率：</div>
                                        <div class="v">
                                            ${b.apr!} %
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">项目金额：</div>
                                        <div class="v">
                                            ${b.account!}元
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">还款方式：</div>
                                        <div class="v">
                                            <#if b.isday??&&b.isday==1>到期一次性还本付息<#elseif
                                                    b.type ==100>系统自动还款<#elseif b.type==110>到期一次性还本付息
                                                <#elseif b.style??&&b.style==2>到期一次性还本付息
                                                    <#elseif b.style??&&b.style==3>每月付息到期还本
                                                        <#else>等额本息还款</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">期限：</div>
                                        <div class="v">
                                            <#if b.isday==1>${b.timeLimitDay!"-"}天<#else>${b.timeLimit!"-"}个月</#if>
                                        </div>
                                    </li>
                                    <li>
                                        <div class="title">待还总额：</div>
                                        <div class="v">
                                            ${repayAmount!}元
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="valBox mb15">
                            <div class="top">
                                <strong>项目信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">项目说明：</div>
                                        <div class="v">${b.content!}</div>
                                    </li>

                                    <li style="float:none;width:auto;height:auto">
                                        <div class="title">还款来源：</div>
                                        <div class="v">${b.repaymentSource!}</div>
                                    </li>

                                </ul>
                            </div>
                        </div>

                        <div class="valBox mb15">
                            <div class="top">
                                <strong>还款人信息</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <ul>
                                    <li>
                                        <div class="title">用户名：</div>
                                        <div class="v">${b.user.showName!}</div>
                                    </li>
                                    <li>
                                        <div class="title">手机：</div>
                                        <div class="v">${b.user.phone!}</div>
                                    </li>
                                    <li>
                                        <div class="title">账户余额：</div>
                                        <div class="v">${b.user.account.useMoney!}元</div>
                                    </li>
                                    <li>
                                        <div class="title">真实姓名：</div>
                                        <div class="v">${b.user.realName!}</div>
                                    </li>
                                    <li>
                                        <div class="title">邮箱：</div>
                                        <div class="v">${b.user.email!}</div>
                                    </li>
                                    <li>
                                        <div class="title">身份号码：</div>
                                        <div class="v">${b.user.cardId!}</div>
                                    </li>
                                </ul>
                            </div>
                        </div>

                        <!-- 提现记录 -->
                        <div class="valBox mb15 clearfix">
                            <div class="top">
                                <strong>提现记录</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>提现账号</td>
                                        <td>类型</td>
                                        <td>提现银行</td>
                                        <td>提现总额</td>
                                        <td>到账金额</td>
                                        <td>手续费</td>
                                        <td>提现时间</td>
                                        <td>状态</td>
                                    </tr>
                                    <#if cList??>
                                        <#list cList as item>
                                            <tr class="s">
                                                <td><#if item??&&item.accountBank.account??>${item.accountBank.account!}<#else>-</#if></td>
                                                <td><#if item??&&item.accountBank.bank.memo??>${item.accountBank.bank.memo}<#else>-</#if></td>
                                                <td><#if item??&&item.accountBank.bank.bankName??>${item.accountBank.bank.bankName!}<#else>-</#if></td>
                                                <td><#if item??&&item.total??>${format2((item.total!"0"))}<#else>-</#if></td>
                                                <td><#if item??&&item.credited??>${format2((item.credited!"0"))}<#else>-</#if></td>
                                                <td><#if item??&&item.fee??>${format2((item.fee!"0"))}<#else>-</#if></td>
                                                <td><#if item??&&item.addtime??>${item.addtime}<#else>-</#if></td>
                                                <td><#if item.status==1>成功<#else>失败</#if></td>
                                            </tr>
                                        </#list>
                                    </#if>
                                </table>
                            </div>

                            <div class="other-tool" style="margin:10px">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>
                            <!--翻页系统--{-->
                            <div class="container s_formPage" style="margin:10px">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=cPage url="${pageUrl}" map=cParam style="style5" />

                            </div>

                        </div>
                        <!-- 还款计划 -->
                        <div class="valBox mb15 clearfix">
                            <div class="top">
                                <strong>还款计划</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>期数</td>
                                        <td>应还款日期</td>
                                        <td>本期应还本息</td>
                                        <td>利息</td>
                                        <td>逾期利息</td>
                                        <td>逾期天数</td>
                                        <td>还款状态</td>
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#if rList??>
                                            <#list rList as item>
                                                <tr class="s">
                                                    <td>
                                                        <#if item.borrow.type==110>
                                                            第1期/共1期
                                                            <#else>
                                                                第${item.period+1}期<#if item.borrow.timeLimit??&&item.borrow.timeLimit!=0>/共${item.borrow.timeLimit}期<#else>/共1期</#if>
                                                        </#if>
                                                    </td>
                                                    <td>${item.repaymentTime?string("yyyy-MM-dd")}</td>
                                                    <td>￥${func.format2(item.repaymentAccount!0)}</td>
                                                    <td>￥${func.format2(item.interest!0)}</td>
                                                    <td>￥${func.format2(item.lateInterest!0)}</td>
                                                    <td>${item.lateDays!0}天</td>
                                                    <td><#if item.status==1>已还<#else>待还</#if></td>
                                                </tr>
                                            </#list>
                                        </#if>
                                </table>
                            </div>

                            <div class="other-tool" style="margin:10px">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>
                            <!--翻页系统--{-->
                            <div class="container s_formPage" style="margin:10px">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=rPage url="${pageUrl}" map=rParam style="style4" />

                            </div>

                        </div>

                        <!-- 申购列表 -->
                        <div class="valBox mb15 clearfix">
                            <div class="top">
                                <strong>项目申购列表</strong>
                            </div>
                            <div class="fp w349 clearfix">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>申购者</td>
                                        <td>申购金额</td>
                                        <td>有效金额</td>
                                        <td>申购时间</td>
                                    </tr>
                                    <#import "../../common/function.html" as func>
                                        <#if list??>
                                            <#list list as item>
                                                <tr class="s">
                                                    <td>${item.user.showName!}</td>
                                                    <td>￥${item.money}</td>
                                                    <td>￥${item.account}</td>
                                                    <td>${item.addtime}</td>
                                                </tr>
                                            </#list>
                                        </#if>
                                </table>
                            </div>
                            <div class="other-tool" style="margin:10px">
                                <dl class="refresh-data">
                                    <dt class="refresh-data-icon"></dt>
                                    <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                </dl>
                            </div>
                            <!--翻页系统--{-->
                            <div class="container s_formPage" style="margin:10px">
                                <#import "../../common/page.html" as pager>
                                    <@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
                            </div>
                        </div>
                    </div>
    </div>
</div>
<div class="mc-b"><#include "../foot.html"></div>
<#include "../jsPage.html">
</body>
</html>


